//
//  BAAlbumIndexManager.h
//  BabyAlbum
//
//  Created by master on 17/2/15.
//  Copyright © 2017年 master. All rights reserved.
//

#import <Foundation/Foundation.h>
@class BAAlbumIndexManager;
@class BAAlbumScrollVC;
@class BAAlbumListVC;

@protocol BAAlbumDataProtocol <NSObject>

@optional
- (void)albumManager:(BAAlbumIndexManager *)manager didChangeToIndex:(NSInteger)index;
- (void)albumManagerDataSourceDidChanged:(BAAlbumIndexManager *)manager;


@end

#define BAALBUM_DATA [BAAlbumIndexManager shareInstance]
@interface BAAlbumIndexManager : NSObject
@property (nonatomic, strong) NSArray<BAAlbumModel *> *albumList;
@property (nonatomic, assign) NSInteger currentIndex;
//@property (nonatomic, strong) BAAlbumListVC *listVC;
//@property (nonatomic, strong) BAAlbumScrollVC *scrollVC;
@property (nonatomic,strong) ASCollectionNode *showingCollectNode;
@property (nonatomic) BOOL isList;

- (void)reloadData; // 重载数据库数据
+ (instancetype)shareInstance;
- (void)setDelegate:(id<BAAlbumDataProtocol>)delegate;
- (void)removeDelegate:(id<BAAlbumDataProtocol>)delegate;

@end
